]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Use an invisible but mapped actor as dummy cursor
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 4 Mar 2019 23:39:54 +0000 (17:39 -0600)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 11 Apr 2019 19:38:17 +0000 (19:38 +0000)
Since this could be used as boxpointer source, it should be marked as mapped,
or it will be ignored.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/435

js/ui/layout.js

index e3c93a92361588aaf1a078a964ab0c531f1888d0..30e750dc5fa8f437b7c1bff21c893ea355e8f169 100644 (file)
@@ -252,7 +252,7 @@ var LayoutManager = GObject.registerClass({
 
         // A dummy actor that tracks the mouse or text cursor, based on the
         // position and size set in setDummyCursorGeometry.
-        this.dummyCursor = new St.Widget({ width: 0, height: 0, visible: false });
+        this.dummyCursor = new St.Widget({ width: 0, height: 0, opacity: 0 });
         this.uiGroup.add_actor(this.dummyCursor);
 
         global.stage.remove_actor(global.top_window_group);